package com.jyx.designpatterns.state;

public class GreenState extends State {

	@Override
	public void getcolor() {
	}

	public void handlepush(Context c){
	//根据push方法"如果是blue状态的切换到green" ;
		c.setState(new GreenState());
	}
	public void handlepull(Context c){
		//根据pull方法"如果是blue状态的切换到red" ;
		c.setState(new RedState());
	}

}
